﻿using System;
using System.Collections.Generic;
using System.Linq;
using Crosland.Automotriz.Entidad;

namespace Crosland.Automotriz.Data.Dao.Linq
{
    public class clsT_Mae_Cliente_CondicionDAO
    {
        private readonly DM_CROSLAND_20130417Entities ContextoDeObjs = new DM_CROSLAND_20130417Entities();

        public List<T_MAE_CLIENTE_CONDICION> Listar()
        {
            List<T_MAE_CLIENTE_CONDICION> lista = new List<T_MAE_CLIENTE_CONDICION>();
            try
            {
                var q = from c in ContextoDeObjs.T_MAE_CLIENTE_CONDICION
                        orderby c.DES_CONDICION ascending
                        select c;
                lista = q.ToList();
            }
            catch (Exception)
            {

            }
            return lista;
        }
    }
}
